#ARCH=arm
#CROSS_COMPILE=$(CROSS_COMPILE)
#KDIR:=$(KDIR)
TARGET=wk2xxx
EXEC=$(TARGET)

$(TARGET)-objs := wk2xxx_spi.o wk2xxx_opts.o
obj-m:=$(TARGET).o
PWD:=$(shell pwd)

$(info Cross compile: $(CROSS_COMPILE))
$(info Kenerl: $(KDIR))

all:
	$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
	rm -rf *.o *~core.depend.*.cmd *.ko *.mod.c .tmp_versions $(TARGET)
